package org.dromara.system.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 充值码明细对象 t_recharge_code
 *
 * @author Miles Meng
 * @date 2025-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_recharge_code")
public class TRechargeCode extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 充值码
     */
    private String code;

    /**
     * 充值码积分
     */
    private Long points;

    /**
     * 是否可用 Y N
     */
    private String status;

    /**
     * 批次
     */
    private String batch;

    /**
     * 充值码定义Id
     */
    private Long rechargeId;

    /**
     * 使用人id
     */
    private Long userId;

    /**
     * 实际兑换时间
     */
    private Date useTime;


}
